cargo.git
8 years agoAuto merge of #4329 - behnam:dev, r=matklad
bors [Wed, 26 Jul 2017 07:34:23 +0000 (07:34 +0000)]
Auto merge of #4329 - behnam:dev, r=matklad

[doc/manifest] Add build-dependencies to Dependency sections list

The `[build-dependencies]` section was missing from the Dependency
sections list, making it hard to find its existence and link to
`specifying-dependencies` page. This puts the section title in the list,
so a normal find works.

Background: https://github.com/rust-lang/cargo/issues/4309#issuecomment-317965620

8 years ago[doc/manifest] Add build-dependencies to Dependency sections list
Behnam Esfahbod [Wed, 26 Jul 2017 06:59:56 +0000 (00:59 -0600)]
[doc/manifest] Add build-dependencies to Dependency sections list

The `[build-dependencies]` section was missing from the Dependency
sections list, making it hard to find its existence and link to
`specifying-dependencies` page. This puts the section title in the list,
so a normal find works.

Background: https://github.com/rust-lang/cargo/issues/4309#issuecomment-317965620

8 years agoAuto merge of #4317 - iKevinY:options-unit-struct, r=matklad
bors [Sat, 22 Jul 2017 20:53:06 +0000 (20:53 +0000)]
Auto merge of #4317 - iKevinY:options-unit-struct, r=matklad

Convert Options struct into unit struct

Unit struct support was added in Docopt 0.8.1 via docopt/docopt.rs#217. Fixes #4174.

8 years agoConvert Options struct into unit struct
Kevin Yap [Sat, 22 Jul 2017 19:57:55 +0000 (12:57 -0700)]
Convert Options struct into unit struct

Unit struct support was added in Docopt 0.8.1 via
docopt/docopt.rs#217. Fixes #4174.

8 years agoAuto merge of #4305 - nodakai:fix-4278-tests-on-empty-ld_library_path, r=matklad
bors [Fri, 21 Jul 2017 20:52:24 +0000 (20:52 +0000)]
Auto merge of #4305 - nodakai:fix-4278-tests-on-empty-ld_library_path, r=matklad

tests/build.rs: remove empty components from LD_LIBRARY_PATH to fix #4278

The tests intended to ensure Cargo wouldn't mistakenly add empty components to `LD_LIBRARY_PATH` (or its equivalents) but they could fail when the test runner already had empty components in `LD_LIBRARY_PATH` from their environment.

8 years agotests/build.rs: remove empty components from LD_LIBRARY_PATH
NODA, Kai [Wed, 19 Jul 2017 13:59:50 +0000 (21:59 +0800)]
tests/build.rs: remove empty components from LD_LIBRARY_PATH

This is to amend PR #4278

The tests intended to ensure Cargo wouldn't mistakenly add empty
components to LD_LIBRARY_PATH (or its equivalents) but they could fail
when the test runner already had empty components in LD_LIBRARY_PATH
from their environment.

Signed-off-by: NODA, Kai <nodakai@gmail.com>
8 years agoAuto merge of #4303 - bluetech:doc-env-cfg, r=alexcrichton
bors [Thu, 20 Jul 2017 17:06:30 +0000 (17:06 +0000)]
Auto merge of #4303 - bluetech:doc-env-cfg, r=alexcrichton

Document the CARGO_CFG_* environment variables - fixes #4302

In order to keep the paragraph brief, I have omitted:

- examples of actual variable names - though adding those might help google.
- mention of `rustc --print cfg` - I think the link to the reference is enough.
- reference to the [RFC](https://github.com/rust-lang/rfcs/blob/master/text/1721-crt-static.md#lowering-cfg-values-to-cargo-build-script-environment-variables) - I don't think it's needed.

8 years agoAuto merge of #4308 - alexcrichton:bump, r=alexcrichton
bors [Thu, 20 Jul 2017 16:03:36 +0000 (16:03 +0000)]
Auto merge of #4308 - alexcrichton:bump, r=alexcrichton

Bump to 0.22.0 and update deps

8 years agoWork around AppVeyor for now
Alex Crichton [Thu, 20 Jul 2017 15:56:49 +0000 (08:56 -0700)]
Work around AppVeyor for now

8 years agoBump to 0.22.0 and update deps
Alex Crichton [Thu, 20 Jul 2017 15:34:13 +0000 (08:34 -0700)]
Bump to 0.22.0 and update deps

8 years agoDocument the CARGO_CFG_* environment variables - fixes #4302
Ran Benita [Wed, 19 Jul 2017 22:30:32 +0000 (01:30 +0300)]
Document the CARGO_CFG_* environment variables - fixes #4302

8 years agoAuto merge of #4299 - brson:home, r=alexcrichton
bors [Wed, 19 Jul 2017 02:10:52 +0000 (02:10 +0000)]
Auto merge of #4299 - brson:home, r=alexcrichton

Replace homedir definition with home crate

This pulls out the definitions of these functions into a single crate, [home](https://github.com/brson/home), to act as their canonical definition.

This has a bigger impact on rustup, since it is using  definitions of all these things, where cargo is just defining cargo_home in terms of std's wrong home_dir.

The [definition of cargo_home](https://github.com/brson/home/blob/master/src/lib.rs#L179) used here is slightly different than what cargo has today in that it contains a bit of defensive code to avoid allowing `CARGO_HOME` to be set to `.multirust/cargo` - this is backwards compatibility code from rustup.

8 years agoAuto merge of #4298 - behnam:ignore, r=alexcrichton
bors [Wed, 19 Jul 2017 00:57:30 +0000 (00:57 +0000)]
Auto merge of #4298 - behnam:ignore, r=alexcrichton

[src/doc/manifest] Add section on Migrating to `gitignore`-like pattern matching

Tracking issue: https://github.com/rust-lang/cargo/issues/4268

8 years ago[src/doc/manifest] Add section on Migrating to `gitignore`-like pattern matching
Behnam Esfahbod [Tue, 18 Jul 2017 23:16:50 +0000 (17:16 -0600)]
[src/doc/manifest] Add section on Migrating to `gitignore`-like pattern matching

Tracking issue: https://github.com/rust-lang/cargo/issues/4268

8 years agoReplace homedir definition with home crate
Brian Anderson [Tue, 18 Jul 2017 23:42:51 +0000 (16:42 -0700)]
Replace homedir definition with home crate

8 years agoAuto merge of #4123 - alexcrichton:augment, r=matklad
bors [Tue, 18 Jul 2017 18:51:34 +0000 (18:51 +0000)]
Auto merge of #4123 - alexcrichton:augment, r=matklad

Implement the [patch] section of the manifest

This is an implementation of [RFC 1969] which adds a new section to top-level
manifests: `[patch]`. This section allows you to augment existing sources with
new versions of crates, possibly replacing the versions that already exist in
the source. More details about this feature can be found in the RFC itself.

[RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969

8 years agoImplement the [patch] section of the manifest
Alex Crichton [Fri, 12 May 2017 18:07:46 +0000 (11:07 -0700)]
Implement the [patch] section of the manifest

This is an implementation of [RFC 1969] which adds a new section to top-level
manifests: `[patch]`. This section allows you to patch existing sources with
new versions of crates, possibly replacing the versions that already exist in
the source. More details about this feature can be found in the RFC itself.

[RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969

8 years agoAuto merge of #4270 - behnam:ignore, r=alexcrichton
bors [Tue, 18 Jul 2017 16:04:11 +0000 (16:04 +0000)]
Auto merge of #4270 - behnam:ignore, r=alexcrichton

[sources/path] Add gitignore-like pattern matching and warn on mismatches

Add gitignore-like pattern matching logic to `list_files()` and throw
warnings for paths getting different inclusion/exclusion results from
the old and the new methods.

Migration Tracking: <#4268>

8 years agoAuto merge of #4295 - xftroxgpx:use_full_path_in_warning_for_issue4293, r=matklad
bors [Tue, 18 Jul 2017 14:09:10 +0000 (14:09 +0000)]
Auto merge of #4295 - xftroxgpx:use_full_path_in_warning_for_issue4293, r=matklad

Fixes #4293

locally tested with:
`cargo test legacy_ many_crate_types_old_style_lib_location`

8 years agoremove leftover { }
xftroxgpx [Tue, 18 Jul 2017 14:05:50 +0000 (16:05 +0200)]
remove leftover { }

8 years agoFixes #4293
xftroxgpx [Tue, 18 Jul 2017 13:05:35 +0000 (15:05 +0200)]
Fixes #4293

locally tested with:
cargo test legacy_ many_crate_types_old_style_lib_location

8 years agoAuto merge of #4292 - xftroxgpx:unconfuse_bin_name, r=matklad
bors [Tue, 18 Jul 2017 12:34:41 +0000 (12:34 +0000)]
Auto merge of #4292 - xftroxgpx:unconfuse_bin_name, r=matklad

quote the binary name in the warning

to avoid confusion when the warning happens inside a workspace, example:
pwd is rustlearnage/rust_books/1_first_edition/closures/
and `cargo run` shows:
```
warning: path `src/main.rs` was erroneously implicitly accepted for binary match,
please set bin.path in Cargo.toml
```
(note that 'match' is not quoted, so it's confusing)

the 'match' project that it's referring to is in rustlearnage/rust_books/1_first_edition/match/
(note: Cargo.toml [workspace] is in rustlearnage/ )

8 years agoquoting library and benchmark names in warning
xftroxgpx [Tue, 18 Jul 2017 12:32:18 +0000 (14:32 +0200)]
quoting library and benchmark names in warning

8 years agoquote the binary name in the warning
xftroxgpx [Tue, 18 Jul 2017 09:13:34 +0000 (11:13 +0200)]
quote the binary name in the warning

to avoid confusion when the warning happens inside a workspace, example:
pwd is rustlearnage/rust_books/1_first_edition/closures/
and `cargo run` shows:

warning: path `src/main.rs` was erroneously implicitly accepted for binary match,
please set bin.path in Cargo.toml

(note that 'match' is not quoted, so it's confusing)

the 'match' project that it's referring to is in rustlearnage/rust_books/1_first_edition/match/
(note: Cargo.toml [workspace] is in rustlearnage/ )

8 years ago[sources/path] Add gitignore-like pattern matching and warn on mismatches
Behnam Esfahbod [Fri, 7 Jul 2017 18:52:03 +0000 (12:52 -0600)]
[sources/path] Add gitignore-like pattern matching and warn on mismatches

Add gitignore-like pattern matching logic to `list_files()` and throw
warnings for paths getting different inclusion/exclusion results from
the old and the new methods.

Migration Tracking: <https://github.com/rust-lang/cargo/issues/4268>

8 years agoAuto merge of #4289 - johnthagen:usage-fix, r=alexcrichton
bors [Mon, 17 Jul 2017 22:52:23 +0000 (22:52 +0000)]
Auto merge of #4289 - johnthagen:usage-fix, r=alexcrichton

Add "uninstall" command to cargo --help

Closes #4285

8 years agoAuto merge of #4288 - matklad:bench-bench, r=alexcrichton
bors [Mon, 17 Jul 2017 14:32:21 +0000 (14:32 +0000)]
Auto merge of #4288 - matklad:bench-bench, r=alexcrichton

Allow `src/bench.rs` as a benchmark for legacy reasons

closes #4287
cc #3947

8 years agoAdd "uninstall" command to cargo --help
johnthagen [Mon, 17 Jul 2017 12:46:36 +0000 (08:46 -0400)]
Add "uninstall" command to cargo --help

8 years agoAuto merge of #4286 - cbcoutinho:master, r=matklad
bors [Mon, 17 Jul 2017 10:37:08 +0000 (10:37 +0000)]
Auto merge of #4286 - cbcoutinho:master, r=matklad

Fix typo in zsh _cargo completions

None

8 years agoAllow `src/bench.rs` as a benchmark for legacy reasons
Aleksey Kladov [Mon, 17 Jul 2017 10:10:47 +0000 (13:10 +0300)]
Allow `src/bench.rs` as a benchmark for legacy reasons

closes #4287
cc #3947

8 years agoFix typo in zsh _cargo completions
Chris Coutinho [Sun, 16 Jul 2017 17:35:31 +0000 (19:35 +0200)]
Fix typo in zsh _cargo completions

8 years agoAuto merge of #4279 - tee-too:fix-3499, r=alexcrichton
bors [Thu, 13 Jul 2017 14:48:46 +0000 (14:48 +0000)]
Auto merge of #4279 - tee-too:fix-3499, r=alexcrichton

Fix support of `[target.'cfg(...)']` syntax for rustc and rustdoc flags

Support of `[target.'cfg(...)']` for rustc and rustdoc flags is buggy.
This adds meaningful tests and fixes the issue.

Fixes #3499

8 years agoFix support of `[target.'cfg(...)']` syntax for rustc and rustdoc flags
tee-too [Thu, 13 Jul 2017 11:24:28 +0000 (13:24 +0200)]
Fix support of `[target.'cfg(...)']` syntax for rustc and rustdoc flags

Support of `[target.'cfg(...)']` for rustc and rustdoc flags is buggy.
This adds meaningful tests and fixes the issue.

Fixes #3499

8 years agoAuto merge of #4278 - mbrubeck:path, r=alexcrichton
bors [Thu, 13 Jul 2017 04:58:41 +0000 (04:58 +0000)]
Auto merge of #4278 - mbrubeck:path, r=alexcrichton

Don't push empty paths in LD_LIBRARY_PATH

Fixes #4277.  Note: I haven't written a test for this fix yet.

8 years agoDon't push empty paths in LD_LIBRARY_PATH
Matt Brubeck [Thu, 13 Jul 2017 03:28:39 +0000 (20:28 -0700)]
Don't push empty paths in LD_LIBRARY_PATH

Fixes #4277.

8 years agoAuto merge of #4275 - alexcrichton:revert-makeflags, r=alexcrichton
bors [Wed, 12 Jul 2017 21:17:06 +0000 (21:17 +0000)]
Auto merge of #4275 - alexcrichton:revert-makeflags, r=alexcrichton

Don't set MAKEFLAGS for build scripts

Closes #4156
Closes rust-lang/rust#42635

8 years agoDon't set MAKEFLAGS for build scripts
Alex Crichton [Wed, 12 Jul 2017 21:15:56 +0000 (14:15 -0700)]
Don't set MAKEFLAGS for build scripts

Closes #4156
Closes rust-lang/rust#42635

8 years agoAuto merge of #4274 - sfackler:patch-1, r=alexcrichton
bors [Wed, 12 Jul 2017 17:26:25 +0000 (17:26 +0000)]
Auto merge of #4274 - sfackler:patch-1, r=alexcrichton

Add CircleCI badge to manifest reference

rust-lang/crates.io#807

8 years agoAdd CircleCI badge to manifest reference
Steven Fackler [Wed, 12 Jul 2017 17:12:25 +0000 (10:12 -0700)]
Add CircleCI badge to manifest reference

rust-lang/crates.io#807

8 years agoAuto merge of #4272 - behnam:doc, r=alexcrichton
bors [Wed, 12 Jul 2017 09:04:18 +0000 (09:04 +0000)]
Auto merge of #4272 - behnam:doc, r=alexcrichton

[doc/crates-io] Add text about packaging tests/benches

Fixes <https://github.com/rust-lang/cargo/issues/4262>

8 years ago[doc/crates-io] Add text about packaging tests/benches
Behnam Esfahbod [Tue, 11 Jul 2017 19:11:31 +0000 (13:11 -0600)]
[doc/crates-io] Add text about packaging tests/benches

Fixes <https://github.com/rust-lang/cargo/issues/4262>

8 years agoAuto merge of #4259 - matklad:conventions, r=alexcrichton
bors [Tue, 11 Jul 2017 19:13:22 +0000 (19:13 +0000)]
Auto merge of #4259 - matklad:conventions, r=alexcrichton

Conventions

r? @alexcrichton

I'd love to refactor our handing of inferring targets by convention, because it is super difficult to understand, and quite probably contains a couple of unintended/undocumented conventions (like `src/foo.rs` being a binary `foo` if there's no library in the package).

As a first step, I've just moved all the logic (600 loc) to a separate file from the `toml.rs` file, which used to be just **huge** (we even use in in IntelliJ Rust for performance testing :) ), and now it is "only" just above 1kloc :)

8 years agoAuto merge of #4267 - natboehm:add-index-flag-search, r=matklad
bors [Mon, 10 Jul 2017 17:08:27 +0000 (17:08 +0000)]
Auto merge of #4267 - natboehm:add-index-flag-search, r=matklad

Replace `cargo search --host` with `cargo search --index`

This change makes the command consistent with other versions of the same flag. `cargo search --host` is still supported, as well as `cargo search --index <index> --host <host>` in case of confusion. The three commands currently supported should produce the same behavior. All instances of `--host` are currently marked as deprecated, or for reuse as mentioned in issue #4208.

Fixes #4219

8 years agoModified tests to use '--index' instead of '--host', added test to support using...
Natalie Boehm [Mon, 10 Jul 2017 15:22:01 +0000 (11:22 -0400)]
Modified tests to use '--index' instead of '--host', added test to support using '--host' with warning message, added test to support using both '--host' and '--index' with warning message for host

8 years agorename '--host' to '--index', add comments marked as TODO where host should be remove...
Natalie Boehm [Mon, 10 Jul 2017 15:19:57 +0000 (11:19 -0400)]
rename '--host' to '--index', add comments marked as TODO where host should be removed/repurposed

8 years agoAuto merge of #4266 - nrc:force, r=alexcrichton
bors [Mon, 10 Jul 2017 14:27:19 +0000 (14:27 +0000)]
Auto merge of #4266 - nrc:force, r=alexcrichton

Add a way to force a unit of work to always be rebuilt

8 years agoAdd a way to force a unit of work to always be rebuilt
Nick Cameron [Mon, 10 Jul 2017 02:09:56 +0000 (14:09 +1200)]
Add a way to force a unit of work to always be rebuilt

8 years agoRearrange code
Aleksey Kladov [Sun, 9 Jul 2017 14:35:12 +0000 (17:35 +0300)]
Rearrange code

8 years agoSimplify
Aleksey Kladov [Sun, 9 Jul 2017 14:30:37 +0000 (17:30 +0300)]
Simplify

8 years agoUse Path::join instead of `/`
Aleksey Kladov [Sun, 9 Jul 2017 13:59:26 +0000 (16:59 +0300)]
Use Path::join instead of `/`

While `/` do work on windows, the resulting path will have literal `/`
in its display.

8 years agoFix more tests
Aleksey Kladov [Sun, 9 Jul 2017 13:27:08 +0000 (16:27 +0300)]
Fix more tests

8 years agoUse the same logic for benches
Aleksey Kladov [Sun, 9 Jul 2017 13:18:53 +0000 (16:18 +0300)]
Use the same logic for benches

8 years agoWarn about obsolete conventions for binary names
Aleksey Kladov [Sun, 9 Jul 2017 12:57:25 +0000 (15:57 +0300)]
Warn about obsolete conventions for binary names

8 years agoRemove Layout structure
Aleksey Kladov [Sun, 9 Jul 2017 11:07:36 +0000 (14:07 +0300)]
Remove Layout structure

8 years agoFix tests
Aleksey Kladov [Sun, 9 Jul 2017 10:31:42 +0000 (13:31 +0300)]
Fix tests

8 years agoMerge duplicate tests
Aleksey Kladov [Sun, 9 Jul 2017 10:10:24 +0000 (13:10 +0300)]
Merge duplicate tests

8 years agoWarn about legacy library paths
Aleksey Kladov [Sun, 9 Jul 2017 10:03:22 +0000 (13:03 +0300)]
Warn about legacy library paths

8 years agoSpecify conventions for benches, examples and tests only once
Aleksey Kladov [Sun, 9 Jul 2017 08:48:54 +0000 (11:48 +0300)]
Specify conventions for benches, examples and tests only once

8 years agoInfer benches, tests and examples without layout
Aleksey Kladov [Sun, 9 Jul 2017 08:08:21 +0000 (11:08 +0300)]
Infer benches, tests and examples without layout

8 years agoReduce code duplication in validation
Aleksey Kladov [Sat, 8 Jul 2017 22:31:43 +0000 (01:31 +0300)]
Reduce code duplication in validation

8 years agoUnify error message formatting
Aleksey Kladov [Sat, 8 Jul 2017 21:59:31 +0000 (00:59 +0300)]
Unify error message formatting

8 years agoUnify parameter order
Aleksey Kladov [Sat, 8 Jul 2017 21:58:25 +0000 (00:58 +0300)]
Unify parameter order

8 years agoReduce code duplication & fix error messages
Aleksey Kladov [Sat, 8 Jul 2017 21:55:38 +0000 (00:55 +0300)]
Reduce code duplication & fix error messages

8 years agoJettison normalize function and its closures!
Aleksey Kladov [Sat, 8 Jul 2017 21:35:05 +0000 (00:35 +0300)]
Jettison normalize function and its closures!

8 years agoExtract clean_benches function
Aleksey Kladov [Sat, 8 Jul 2017 21:30:38 +0000 (00:30 +0300)]
Extract clean_benches function

8 years agoExtract clean_tests function
Aleksey Kladov [Sat, 8 Jul 2017 21:10:04 +0000 (00:10 +0300)]
Extract clean_tests function

8 years agoExtract clean_examples function
Aleksey Kladov [Sat, 8 Jul 2017 20:53:09 +0000 (23:53 +0300)]
Extract clean_examples function

8 years agoExtract clean_bins function
Aleksey Kladov [Sat, 8 Jul 2017 20:19:31 +0000 (23:19 +0300)]
Extract clean_bins function

8 years agoExtract clean_library function
Aleksey Kladov [Sat, 8 Jul 2017 19:51:42 +0000 (22:51 +0300)]
Extract clean_library function

8 years agoDon't store root in the layout
Aleksey Kladov [Sat, 8 Jul 2017 18:35:52 +0000 (21:35 +0300)]
Don't store root in the layout

8 years agoUnify naming for `package_root`
Aleksey Kladov [Sat, 8 Jul 2017 18:46:06 +0000 (21:46 +0300)]
Unify naming for `package_root`

8 years agoSuperfluous pub
Aleksey Kladov [Sat, 8 Jul 2017 16:48:46 +0000 (19:48 +0300)]
Superfluous pub

8 years agoRestructure code
Aleksey Kladov [Sat, 8 Jul 2017 16:45:07 +0000 (19:45 +0300)]
Restructure code

8 years agoMake layout private to targets
Aleksey Kladov [Sat, 8 Jul 2017 16:11:36 +0000 (19:11 +0300)]
Make layout private to targets

8 years agoMove code for inferring build targets to a separate file
Aleksey Kladov [Sat, 8 Jul 2017 16:00:31 +0000 (19:00 +0300)]
Move code for inferring build targets to a separate file

8 years agoFix typo
Aleksey Kladov [Sun, 2 Jul 2017 09:17:26 +0000 (12:17 +0300)]
Fix typo

8 years agoRefactor: virtual manifest does not need layout
Aleksey Kladov [Sun, 2 Jul 2017 09:08:49 +0000 (12:08 +0300)]
Refactor: virtual manifest does not need layout

8 years agoSimplify
Aleksey Kladov [Sun, 2 Jul 2017 08:32:48 +0000 (11:32 +0300)]
Simplify

8 years agoSimplify
Aleksey Kladov [Sun, 2 Jul 2017 08:24:55 +0000 (11:24 +0300)]
Simplify

8 years agoMake `Layout` a private implementation detail of toml
Aleksey Kladov [Sun, 2 Jul 2017 08:01:25 +0000 (11:01 +0300)]
Make `Layout` a private implementation detail of toml

8 years agoAuto merge of #4257 - alexcrichton:update, r=alexcrichton
bors [Fri, 7 Jul 2017 21:21:06 +0000 (21:21 +0000)]
Auto merge of #4257 - alexcrichton:update, r=alexcrichton

Update dependencies with semver-compat version

Just a standard update

8 years agoUpdate dependencies with semver-compat version
Alex Crichton [Fri, 7 Jul 2017 21:01:40 +0000 (14:01 -0700)]
Update dependencies with semver-compat version

Just a standard update

8 years agoAuto merge of #4248 - dethoter:issue-4228, r=alexcrichton
bors [Wed, 5 Jul 2017 14:19:07 +0000 (14:19 +0000)]
Auto merge of #4248 - dethoter:issue-4228, r=alexcrichton

bench command supports --no-fail-fast flag.

Fix for #4228.

8 years agoAuto merge of #4249 - tmccombs:zsh-test-update, r=alexcrichton
bors [Wed, 5 Jul 2017 13:58:20 +0000 (13:58 +0000)]
Auto merge of #4249 - tmccombs:zsh-test-update, r=alexcrichton

Add more options for cargo test zsh completion

8 years agoAdd more options for cargo test zsh completion
Thayne McCombs [Wed, 5 Jul 2017 07:19:58 +0000 (01:19 -0600)]
Add more options for cargo test zsh completion

8 years agobench command supports --no-fail-fast flag.
Evgen Druzhynin [Tue, 4 Jul 2017 16:48:28 +0000 (19:48 +0300)]
bench command supports --no-fail-fast flag.

8 years agoAuto merge of #4246 - est31:master, r=Mark-Simulacrum
bors [Sun, 2 Jul 2017 13:44:07 +0000 (13:44 +0000)]
Auto merge of #4246 - est31:master, r=Mark-Simulacrum

Let two further tests tolerate col info in panics

Needed by https://github.com/rust-lang/rust/pull/42938

I've now ripgrepped for "panicked at" and found no further
test that hardcodes the "filename:line$" format.

8 years agoLet two further tests tolerate col info in panics
est31 [Sun, 2 Jul 2017 13:38:29 +0000 (15:38 +0200)]
Let two further tests tolerate col info in panics

Needed by https://github.com/rust-lang/rust/pull/42938

I've now ripgrepped for "panicked at" and found no further
test that hardcodes the "filename:line$" format.

8 years agoAuto merge of #4244 - est31:master, r=matklad
bors [Sun, 2 Jul 2017 11:08:30 +0000 (11:08 +0000)]
Auto merge of #4244 - est31:master, r=matklad

Let the cargo_bench_failing_test tolerate col info

Needed by https://github.com/rust-lang/rust/pull/42938

8 years agoLet the cargo_bench_failing_test tolerate col info
est31 [Sun, 2 Jul 2017 11:04:16 +0000 (13:04 +0200)]
Let the cargo_bench_failing_test tolerate col info

Needed by https://github.com/rust-lang/rust/pull/42938

8 years agoAuto merge of #4239 - Keruspe:master, r=alexcrichton
bors [Fri, 30 Jun 2017 05:49:34 +0000 (05:49 +0000)]
Auto merge of #4239 - Keruspe:master, r=alexcrichton

hash '__CARGO_DEFAULT_LIB_METADATA' in metadata for rustc

We already have __CARGO_DEFAULT_LIB_METADATA to force adding the hash of some metadata in the libraries file name when building rust.
For now, we only check if it is set or not.
This patch makes also use of its value to compute the hash. This way we'll be able to pass in the channel we're building to avoid hash collisions between channels.

8 years agoAuto merge of #4214 - msehnout:master, r=matklad
bors [Fri, 30 Jun 2017 05:29:30 +0000 (05:29 +0000)]
Auto merge of #4214 - msehnout:master, r=matklad

Infer multi-file binaries like `src/bin/server/main.rs` by convention

This feature is described in issue #4086

8 years agoAuto merge of #4238 - ashleygwilliams:policies, r=steveklabnik
bors [Thu, 29 Jun 2017 18:31:16 +0000 (18:31 +0000)]
Auto merge of #4238 - ashleygwilliams:policies, r=steveklabnik

updates to policies

based on convo with @withoutboats and @carols10cents

8 years agohash '__CARGO_DEFAULT_LIB_METADATA' in metadata for rustc
Marc-Antoine Perennou [Thu, 15 Jun 2017 14:48:05 +0000 (16:48 +0200)]
hash '__CARGO_DEFAULT_LIB_METADATA' in metadata for rustc

This will let us seed the release channel as part of the
metadata used for the hash to avoid conflicting hashes across
channels.

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
8 years agoAdd documentation for multi-file binary convention
Martin Sehnoutka [Thu, 29 Jun 2017 07:53:57 +0000 (09:53 +0200)]
Add documentation for multi-file binary convention

8 years agoPrevent unnecessary heap allocations and simplify condition
Martin Sehnoutka [Thu, 29 Jun 2017 07:52:40 +0000 (09:52 +0200)]
Prevent unnecessary heap allocations and simplify condition

8 years agoAuto merge of #4234 - michaelwoerister:smarter-cargo-incremental-2, r=alexcrichton
bors [Thu, 29 Jun 2017 01:01:27 +0000 (01:01 +0000)]
Auto merge of #4234 - michaelwoerister:smarter-cargo-incremental-2, r=alexcrichton

Set -Ccodegen-units=N for non-path dependencies when CARGO_INCREMENTAL is set.

This PR tweaks compilation for non-path dependencies when CARGO_INCREMENTAL is set. Before, `cargo` would compile such dependencies "just" non-incrementally while, with this PR, it will also set the number of CGUs to the number of CPU cores. Otherwise compiling those dependencies might take significantly longer (because of more expensive optimizations and less multi-threading) than compiling them incrementally -- which is what we wanted to avoid in the first place.

8 years agofeat(policy): add information on security disclosures
Ashley Williams [Thu, 29 Jun 2017 00:16:00 +0000 (20:16 -0400)]
feat(policy): add information on security disclosures

8 years agofix(doc): clarify the content the code of conduct covers
Ashley Williams [Thu, 29 Jun 2017 00:10:36 +0000 (20:10 -0400)]
fix(doc): clarify the content the code of conduct covers

8 years ago"main" can be valid name for binary again, improve test
Martin Sehnoutka [Wed, 28 Jun 2017 12:02:25 +0000 (14:02 +0200)]
"main" can be valid name for binary again, improve test